<template>
	<div class="btn-wrapper">
		<button class="btn" v-bind="$attrs">MyButton组件</button>
		<p>{{$attrs}}</p>
	</div>
</template>
 
<script>
	export default {
		inheritAttrs:false,
	}
</script> 
 
<script setup>
	const handleClick = () => {
		console.log('555')
	}
</script>

<style>
	.btn {
		font-size: 18px;
	}
</style>